import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import {createPinia} from "pinia"
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
import router from "./router/route"
import DiscordPicker from 'vue3-discordpicker'


import { createI18n } from 'vue-i18n'
import zh from "./utils/i18n/zh"
import en from "./utils/i18n/en"

const i18n = createI18n({
    legacy: false, // Composition API 模式
    globalInjection: true, // 全局注册 $t方法
    locale: 'zh', // 设置默认语言
    messages: {
      en,
      zh
    }
  })

// import dayjs from 'dayjs'
const app = createApp(App);

// app.config.globalProperties.dayjs = dayjs
app.use(createPinia()).use(Antd).use(DiscordPicker).use(i18n).use(router).mount('#app')
